package com.rd.student.ruanjian.class3.gaochenxi;

public class StringTest {
   public static void main(String[] args) {
      String intStr = "123";
      int t1 = Integer.parseInt(intStr);//方式1(String -> int)

      String intStr2="123";
      int t2 = new Integer(intStr2);//方式2(String -> int)

      System.out.println(t1 + " " + t2);//123 123
   }
}
